import '../../util/http.dart';
import 'package:flutter/material.dart';


class Command {

  BuildContext? context;

  static Command of(BuildContext? context) {
    Command command = Command();
    command.context = context;
    return command;
  }

  /// 托盘搭载
  Future<dynamic> carrying(data) async {
    return await ApiService.of(context).put('lgs/command/carrying', data);
  }

  /// 托盘放置
  Future<dynamic> place(data) async{
    return await ApiService.of(context).put('lgs/command/place', data);
  }

  /// 配送
  Future<dynamic> delivery(data) async{
    return await ApiService.of(context).put('lgs/command/delivery', data);
  }
}